﻿<%@ Page Language="C#" MasterPageFile="~/webUI/mod/modTemplate.master" AutoEventWireup="true"
    CodeFile="scoreSheet_wizard.aspx.cs" Inherits="scoreSheet_wizard" Title=".::E-Valuation System::.." %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div class="UIDivInfo">
        <div class="UITabPane" style="margin-top: 15px;">
            <div class="TabPaneContent">
                <div class="WorkingAreaWithHelp" style="width: 98.5%;">
                    <div class="UIHorizontalTabs">
                        <div class="LeftHorizontalTabs">
                            <div class="RightHorizontalTabs">
                                <div class="CenterHorizontalTabs">
                                    <div class="TabsContainer">
                                        <asp:PlaceHolder ID="TabsContainer" runat="server">
                                            <div class="UITab NormalTabStyle">
                                                <% String className = "NormalTab";
                                                   if (getSelectedTab().Equals("0"))
                                                   {
                                                       className = "SelectedTab";
                                                   }
                                                %>
                                                <div id="UITab0" class="<%=className %>">
                                                    <div class="LeftTab">
                                                        <div class="RightTab">
                                                            <div class="MiddleTab">
                                                                <asp:LinkButton CssClass="NormalLink" ID="TabValue0" runat="server" CausesValidation="false"
                                                                    OnClick="ChangeTabIndex">
                                                                  Bước 1
                                                                </asp:LinkButton>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="UITab NormalTabStyle">
                                                <%
                                                    className = "NormalTab";
                                                    if (getSelectedTab().Equals("1"))
                                                    {
                                                        className = "SelectedTab";
                                                    }
                                                %>
                                                <div id="UITab1" class="<%=className %>">
                                                    <div class="LeftTab">
                                                        <div class="RightTab">
                                                            <div class="MiddleTab">
                                                                <asp:LinkButton CssClass="NormalLink" ID="TabValue1" runat="server" CausesValidation="false"
                                                                    OnClick="ChangeTabIndex">
                                                                 Bước 2
                                                                </asp:LinkButton>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="UITab NormalTabStyle">
                                                <%
                                                    className = "NormalTab";
                                                    if (getSelectedTab().Equals("2"))
                                                    {
                                                        className = "SelectedTab";
                                                    }
                                                %>
                                                <div id="UITab2" class="<%=className %>">
                                                    <div class="LeftTab">
                                                        <div class="RightTab">
                                                            <div class="MiddleTab">
                                                                <asp:LinkButton CssClass="NormalLink" ID="TabValue2" runat="server" CausesValidation="false"
                                                                    OnClick="ChangeTabIndex">
                                                                 Bước 3
                                                                </asp:LinkButton>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="UITab NormalTabStyle">
                                                <%
                                                    className = "NormalTab";
                                                    if (getSelectedTab().Equals("3"))
                                                    {
                                                        className = "SelectedTab";
                                                    }
                                                %>
                                                <div id="UITab3" class="<%=className %>">
                                                    <div class="LeftTab">
                                                        <div class="RightTab">
                                                            <div class="MiddleTab">
                                                                <asp:LinkButton CssClass="NormalLink" ID="TabValue3" runat="server" CausesValidation="false"
                                                                    OnClick="ChangeTabIndex">
                                                                 Bước 4
                                                                </asp:LinkButton>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="UITab NormalTabStyle">
                                                <%
                                                    className = "NormalTab";
                                                    if (getSelectedTab().Equals("4"))
                                                    {
                                                        className = "SelectedTab";
                                                    }
                                                %>
                                                <div id="UITab4" class="<%=className %>">
                                                    <div class="LeftTab">
                                                        <div class="RightTab">
                                                            <div class="MiddleTab">
                                                                <asp:LinkButton CssClass="NormalLink" ID="TabValue4" runat="server" CausesValidation="false"
                                                                    OnClick="ChangeTabIndex">
                                                                 Bước 5
                                                                </asp:LinkButton>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="UITab NormalTabStyle">
                                                <%
                                                    className = "NormalTab";
                                                    if (getSelectedTab().Equals("5"))
                                                    {
                                                        className = "SelectedTab";
                                                    }
                                                %>
                                                <div id="UITab5" class="<%=className %>">
                                                    <div class="LeftTab">
                                                        <div class="RightTab">
                                                            <div class="MiddleTab">
                                                                <asp:LinkButton CssClass="NormalLink" ID="TabValue5" runat="server" CausesValidation="false"
                                                                    OnClick="ChangeTabIndex">
                                                                 Bước 6
                                                                </asp:LinkButton>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="UITab NormalTabStyle">
                                                <%
                                                    className = "NormalTab";
                                                    if (getSelectedTab().Equals("6"))
                                                    {
                                                        className = "SelectedTab";
                                                    }
                                                %>
                                                <div id="UITab6" class="<%=className %>">
                                                    <div class="LeftTab">
                                                        <div class="RightTab">
                                                            <div class="MiddleTab">
                                                                <asp:LinkButton CssClass="NormalLink" ID="TabValue6" runat="server" CausesValidation="false"
                                                                    OnClick="ChangeTabIndex">
                                                                 Bước 7
                                                                </asp:LinkButton>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="UITab NormalTabStyle">
                                                <%
                                                    className = "NormalTab";
                                                    if (getSelectedTab().Equals("7"))
                                                    {
                                                        className = "SelectedTab";
                                                    }
                                                %>
                                                <div id="UITab7" class="<%=className %>">
                                                    <div class="LeftTab">
                                                        <div class="RightTab">
                                                            <div class="MiddleTab">
                                                                <asp:LinkButton CssClass="NormalLink" ID="TabValue7" runat="server" CausesValidation="false"
                                                                    OnClick="ChangeTabIndex">
                                                                 Bước 8
                                                                </asp:LinkButton>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="UITab NormalTabStyle">
                                                <%
                                                    className = "NormalTab";
                                                    if (getSelectedTab().Equals("8"))
                                                    {
                                                        className = "SelectedTab";
                                                    }
                                                %>
                                                <div id="UITab8" class="<%=className %>">
                                                    <div class="LeftTab">
                                                        <div class="RightTab">
                                                            <div class="MiddleTab">
                                                                <asp:LinkButton CssClass="NormalLink" ID="TabValue8" runat="server" CausesValidation="false"
                                                                    OnClick="ChangeTabIndex">
                                                                 Bước 9
                                                                </asp:LinkButton>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="UITab NormalTabStyle">
                                                <%
                                                    className = "NormalTab";
                                                    if (getSelectedTab().Equals("9"))
                                                    {
                                                        className = "SelectedTab";
                                                    }
                                                %>
                                                <div id="UITab9" class="<%=className %>">
                                                    <div class="LeftTab">
                                                        <div class="RightTab">
                                                            <div class="MiddleTab">
                                                                <asp:LinkButton CssClass="NormalLink" ID="TabValue9" runat="server" CausesValidation="false"
                                                                    OnClick="ChangeTabIndex">
                                                                 Bước 10
                                                                </asp:LinkButton>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </asp:PlaceHolder>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div style="clear: left;">
                        <span></span>
                    </div>
                    <asp:PlaceHolder ID="UITabContentContainer" runat="server">
                        <div class="ScoreSheet_Wizard">
                            <div class="UITabContentContainer">
                                <%
                                    String styleDisplay = "none";
                                    if (getSelectedTab().Equals("0"))
                                    {
                                        styleDisplay = "block";
                                    }
                                %>
                                <div id="UITabContent0" class="UITabContent" style="display: <%=styleDisplay %>">
                                    <asp:Panel ID="Panel10" runat="server">
                                        <table>
                                            <tr>
                                                <td colspan="2" class="Label">
                                                    Trước khi nhập điểm bạn phải chọn một số mục:<br />
                                                    <li>Nếu Tên Sản Phẩm trống xin nhấn vào nút Tạo mới Sản Phẩm<br />
                                                    </li>
                                                    <li>Nếu Tên Hội Đồng trống xin nhấn vào nút Tạo mới Hội Đồng
                                                        <br />
                                                    </li>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td style="width: 30%" class="Label">
                                                    Chọn hội đồng</td>
                                                <td>
                                                    <asp:DropDownList CssClass="DropdownList" runat="server" DataSourceID="hoidongData"
                                                        ID="cb_hoidong" DataTextField="TenHoidong" DataValueField="MaHoidong" AutoPostBack="true"
                                                        OnSelectedIndexChanged="changeCucil">
                                                    </asp:DropDownList>
                                                    <asp:LinkButton ID="lbl_newHoidong" runat="server" Visible="false" CssClass="ActionButton">Thêm</asp:LinkButton>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td class="Label">
                                                    Chọn sản phẩm</td>
                                                <td>
                                                    <asp:DropDownList CssClass="DropdownList" runat="server" ID="cb_sanpham" AutoPostBack="true"
                                                        DataSourceID="sanphamData" OnSelectedIndexChanged="changeProduct" DataTextField="TenSanPham"
                                                        DataValueField="MaSanPham">
                                                    </asp:DropDownList>
                                                </td>
                                            </tr>
                                        </table>
                                        <asp:SqlDataSource runat="server" ID="hoidongData" ConnectionString="<%$ ConnectionStrings:evaConn %>"
                                            SelectCommand="SELECT [MaHoidong], [TenHoidong] FROM [hoidong] WHERE (madoanhnghiep=@madoanhnghiep) AND (Status=1)-- UNION SELECT 0, N'----Chọn một----'">
                                            <SelectParameters>
                                                <asp:SessionParameter Name="madoanhnghiep" SessionField="CompanyID" />
                                            </SelectParameters>
                                        </asp:SqlDataSource>
                                        <asp:SqlDataSource runat="server" ID="sanphamData" ConnectionString="<%$ ConnectionStrings:evaConn %>"
                                            SelectCommand="SELECT [MaSanPham], [TenSanPham] FROM [SanPham] WHERE (mahoidong=@mahoidong) AND (madoanhnghiep=@madoanhnghiep) AND (status =1)-- union select 0, N'----Chọn một----'">
                                            <SelectParameters>
                                                <asp:ControlParameter Name="mahoidong" ControlID="cb_hoidong" PropertyName="SelectedValue" />
                                                <asp:SessionParameter Name="madoanhnghiep" SessionField="CompanyID" />
                                            </SelectParameters>
                                        </asp:SqlDataSource>
                                    </asp:Panel>
                                </div>
                                <%
                                    styleDisplay = "none";
                                    if (getSelectedTab().Equals("1"))
                                    {
                                        styleDisplay = "block";
                                    }
                                %>
                                <div id="UITabContent1" class="UITabContent" style="display: <%=styleDisplay %>">
                                    <asp:Panel runat="server" ID="CapPhepPanle" CssClass="UITabContentReg">
                                        <table>
                                            <tr>
                                                <td colspan="2" class="Label">
                                                    Nhập chi tiết thông tin Để xem danh sách Chi Tiết Thông Tin.<br />
                                                    Xin hãy nhấn vào đây
                                                </td>
                                            </tr>
                                            <tr>
                                                <td style="width: 30%" class="Label">
                                                    Tên chi tiết thông tin</td>
                                                <td>
                                                    <textarea runat="server" id="txt_chitietthongtin" rows="2" class="TextArea"></textarea></td>
                                            </tr>
                                            <tr>
                                                <td class="Label">
                                                    Alpha I</td>
                                                <td>
                                                    <asp:TextBox ID="AlphaI" runat="server" CssClass="TexBox" Text="0"></asp:TextBox>
                                                    <asp:RequiredFieldValidator ID="rfvAlphaI" CssClass="ValidateLabel" runat="server"
                                                        Display="Dynamic" ControlToValidate="AlphaI" ErrorMessage="Không được trống"></asp:RequiredFieldValidator>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td class="Label">
                                                    Ghi chú
                                                </td>
                                                <td>
                                                    <textarea id="txt_ghichu_chitietthongtin" runat="server" class="TextArea" rows="2"></textarea></td>
                                            </tr>
                                            <tr>
                                                <td colspan="2" style="text-align: center">
                                                    <asp:Button runat="server" ID="btnSaveAlphaI" OnClick="btnSaveAlphaI_Click" Text="Ghi lại"
                                                        CausesValidation="false" />
                                                </td>
                                            </tr>
                                            <tr>
                                                <td colspan="2">
                                                    <asp:SqlDataSource ID="chitietthongtinData" runat="server" ConnectionString="<%$ConnectionStrings:evaConn %>"
                                                SelectCommand="SELECT ChiTietThongTin.MaChiTietThongTin, ChiTietThongTin.TenChiTietThongTin, ChiTietThongTin.AlphaI FROM ChiTietThongTin INNER JOIN SanPham ON SanPham.MaSanPham = ChiTietThongTin.MaSanPham INNER JOIN HoiDong ON HoiDong.MaHoiDong = ChiTietThongTin.MaHoiDong WHERE (HoiDong.MaDoanhNghiep =@madoanhnghiep) AND (HoiDong.MaHoiDong=@mahoidong) AND (SanPham.MaSanPham =@masanpham)"
                                                DeleteCommand="DELETE FROM ChiTietThongTin WHERE (MaChiTietThongTin=@MaChiTietThongTin)"
                                                >
                                                <SelectParameters>
                                                    <asp:SessionParameter Name="madoanhnghiep" SessionField="CompanyID" />
                                                    <asp:ControlParameter Name="mahoidong" ControlID="cb_hoidong" PropertyName="SelectedValue" />
                                                    <asp:ControlParameter Name="masanpham" ControlID="cb_sanpham" PropertyName="SelectedValue" />
                                                </SelectParameters>
                                                <DeleteParameters>
                                                    <asp:Parameter Name="MaChiTietThongTin" />
                                                </DeleteParameters>
                                            </asp:SqlDataSource>
                                            <asp:GridView ID="grvAlphaI" runat="server" AutoGenerateColumns="False" AllowPaging="True"
                                                DataSourceID="chitietthongtinData" DataKeyNames="MaChiTietThongTin"  PageSize="5"
                                                CssClass="Grv">
                                                <Columns>
                                                    <asp:TemplateField>
                                                        <HeaderTemplate>
                                                            <asp:HiddenField ID="MaChiTietThongTin" runat="server" Value='<%#Eval("MaChiTietThongTin") %>' />
                                                        </HeaderTemplate>
                                                    </asp:TemplateField>
                                                    <asp:BoundField DataField="TenChiTietThongTin" HeaderText="TenChiTietThongTin" />
                                                    <asp:BoundField DataField="AlphaI" HeaderText="Alpha I" />
                                                    <asp:CommandField ButtonType="Image" SelectText="Chọn" SelectImageUrl="~/App_Themes/Default/Css/images/edit.gif"
                                                        HeaderText="Chức năng" ShowHeader="True" ShowSelectButton="True" DeleteImageUrl="~/App_Themes/Default/Css/images/delete.gif"
                                                        DeleteText="Xóa" ShowDeleteButton="true"  />
                                                </Columns>
                                                <PagerStyle CssClass="GrvPagerStyle" />
                                                <HeaderStyle CssClass="GrvHeader" />
                                                <RowStyle CssClass="GrvRowStyle" />
                                                <AlternatingRowStyle CssClass="GrvAlternatingRowStyle" />
                                            </asp:GridView>
                                                </td>
                                            </tr>
                                        </table>                                       
                                    </asp:Panel>
                                </div>
                                <%
                                    styleDisplay = "none";
                                    if (getSelectedTab().Equals("2"))
                                    {
                                        styleDisplay = "block";
                                    }
                                %>
                                <div id="UITabContent2" class="UITabContent" style="display: <%=styleDisplay %>;">
                                    <asp:Panel ID="Panel11" runat="server">
                                        <table>
                                            <tr>
                                                <td colspan="2" class="Label">
                                                    Nhập chi tiết Tổ chức</td>
                                            </tr>
                                            <tr>
                                                <td style="width: 30%" class="Label">
                                                    Tên chi tiết Tổ chức</td>
                                                <td>
                                                    <textarea runat="server" id="txt_chitiettochuc" rows="2" class="TextArea"></textarea></td>
                                            </tr>
                                            <tr>
                                                <td class="Label">
                                                    Alpha O</td>
                                                <td>
                                                    <asp:TextBox ID="AlphaO" runat="server" CssClass="TexBox"></asp:TextBox>
                                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" CssClass="ValidateLabel"
                                                        runat="server" Display="Dynamic" ControlToValidate="AlphaO" ErrorMessage="Không được trống"></asp:RequiredFieldValidator>
                                                    <asp:RegularExpressionValidator ID="RegularExpressionValidator1" CssClass="ValidateLabel"
                                                        runat="server" Display="Dynamic" ControlToValidate="AlphaO" ErrorMessage="Giá trị phải > 0 và < 1"
                                                        ValidationExpression="^[0]+(\.)?([0-9])?([0-9])?$"></asp:RegularExpressionValidator>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td class="Label">
                                                    Ghi chú
                                                </td>
                                                <td>
                                                    <textarea id="txt_ghichu_chitiettochuc" runat="server" class="TextArea" rows="2"></textarea></td>
                                            </tr>
                                            <tr>
                                                <td colspan="2" style="text-align: center">
                                                    <asp:Button runat="server" ID="btnSaveAlphaO" Text="Ghi lại" />
                                                </td>
                                            </tr>
                                        </table>
                                        <div class="PanelRepeater">
                                            <asp:SqlDataSource ID="chitiettochucData" runat="server" ConnectionString="<%$ConnectionStrings:evaConn %>"
                                                SelectCommand="SELECT * FROM DSChiTietToChucView WHERE MaDoanhNghiep=@madoanhnghiep and MaHoiDong=@mahoidong and MaSanPham=@masanpham ">
                                                <SelectParameters>
                                                    <asp:Parameter Name="madoanhnghiep" />
                                                    <asp:ControlParameter Name="mahoidong" ControlID="cb_hoidong" PropertyName="SelectedValue" />
                                                    <asp:ControlParameter Name="masanpham" ControlID="cb_sanpham" PropertyName="SelectedValue" />
                                                </SelectParameters>
                                            </asp:SqlDataSource>
                                            <table>
                                                <tr>
                                                    <td>
                                                        <div class="FeildContainer">
                                                            <label>
                                                                Tên chi tiết tổ chức</label></div>
                                                    </td>
                                                    <td>
                                                        <div class="FeildContainer">
                                                            <label>
                                                                AlphaO</label></div>
                                                    </td>
                                                </tr>
                                                <asp:Repeater ID="rp_chitiettochuc" runat="server" DataSourceID="chitiettochucData">
                                                    <ItemTemplate>
                                                        <tr>
                                                            <td>
                                                                <div class="FeildContainer">
                                                                    <label>
                                                                        <%#Eval("tenchitiettochuc")%>
                                                                    </label>
                                                                </div>
                                                            </td>
                                                            <td>
                                                                <div class="FeildContainer">
                                                                    <asp:TextBox ID="TextBox1" runat="server" CssClass="TexBox" Text='<%#Eval("alphaO") %>'></asp:TextBox>
                                                                </div>
                                                            </td>
                                                        </tr>
                                                    </ItemTemplate>
                                                </asp:Repeater>
                                            </table>
                                        </div>
                                    </asp:Panel>
                                </div>
                                <%
                                styleDisplay = "none";
                                if (getSelectedTab().Equals("3"))
                                {
                                    styleDisplay = "block";
                                }
                                %>
                                <div id="UITabContent3" class="UITabContent" style="display: <%=styleDisplay %>;">
                                    <asp:Panel ID="Panel12" runat="server">
                                        <table>
                                            <tr>
                                                <td colspan="2" class="Label">
                                                    Hiệu quả Công nghệ Tổ chức</td>
                                            </tr>
                                            <tr>
                                                <td style="width: 40%" class="Label">
                                                    Tên Hiệu quả Công nghệ Tổ chức</td>
                                                <td>
                                                    <textarea runat="server" id="txt_hieuquatochuc" rows="2" class="TextArea"></textarea></td>
                                            </tr>
                                            <tr>
                                                <td class="Label">
                                                    Ghi chú
                                                </td>
                                                <td>
                                                    <textarea id="txt_ghichu_hieuquatochuc" runat="server" class="TextArea" rows="2"></textarea></td>
                                            </tr>
                                            <tr>
                                                <td colspan="2" style="text-align: center">
                                                    <asp:Button runat="server" ID="btnSaveHQCNTC" Text="Ghi lại" />
                                                </td>
                                            </tr>
                                        </table>
                                        <div class="PanelRepeater">
                                            <asp:SqlDataSource ID="hieuquacongnghetochucData" runat="server" ConnectionString="<%$ConnectionStrings:evaConn %>"
                                                SelectCommand="SELECT * FROM HieuQuaCongNghe_ToChuc inner join SanPham on SanPham.MaSanPham = HieuQuaCongNghe_ToChuc.MaSanPham inner join HoiDong on HoiDong.MaHoiDong = HieuQuaCongNghe_ToChuc.MaHoiDong where HoiDong.MaDoanhNghiep=@madoanhnghiep and HoiDong.MaHoiDong=@mahoidong and SanPham.MaSanPham=@masanpham ">
                                                <SelectParameters>
                                                    <asp:Parameter Name="madoanhnghiep" />
                                                    <asp:ControlParameter Name="mahoidong" ControlID="cb_hoidong" PropertyName="SelectedValue" />
                                                    <asp:ControlParameter Name="masanpham" ControlID="cb_sanpham" PropertyName="SelectedValue" />
                                                </SelectParameters>
                                            </asp:SqlDataSource>
                                            <table>
                                                <tr>
                                                    <td>
                                                        <div class="FeildContainer">
                                                            <label>
                                                                Hiệu quả công nghệ tổ chức</label></div>
                                                    </td>
                                                    <td>
                                                        <div class="FeildContainer">
                                                            <label>
                                                                Ghi chú</label></div>
                                                    </td>
                                                </tr>
                                                <asp:Repeater ID="rp_hieuquacongnghetochuc" runat="server" DataSourceID="hieuquacongnghetochucData">
                                                    <ItemTemplate>
                                                        <tr>
                                                            <td>
                                                                <div class="FeildContainer">
                                                                    <label>
                                                                        <%#Eval("tenhieuquacongnghe_tochuc")%>
                                                                    </label>
                                                                </div>
                                                            </td>
                                                            <td>
                                                                <div class="FeildContainer">
                                                                    <label>
                                                                        <%#Eval("ghichu") %>
                                                                    </label>
                                                                </div>
                                                            </td>
                                                        </tr>
                                                    </ItemTemplate>
                                                </asp:Repeater>
                                            </table>
                                        </div>
                                    </asp:Panel>
                                </div>
                                <%
                                styleDisplay = "none";
                                if (getSelectedTab().Equals("4"))
                                {
                                    styleDisplay = "block";
                                }
                                %>
                                <div id="UITabContent4" class="UITabContent" style="display: <%=styleDisplay %>;">
                                    <asp:Panel ID="Panel13" runat="server">
                                        <table>
                                            <tr>
                                                <td colspan="2" class="Label">
                                                    Nhập nhân tố Con người
                                                </td>
                                            </tr>
                                            <tr>
                                                <td style="width: 30%" class="Label">
                                                    Yếu tố con người</td>
                                                <td>
                                                    <textarea runat="server" id="txt_chitietconnguoi" rows="2" class="TextArea"></textarea></td>
                                            </tr>
                                            <tr>
                                                <td class="Label">
                                                    Alpha H</td>
                                                <td>
                                                    <asp:TextBox ID="AlphaH" runat="server" CssClass="TexBox"></asp:TextBox>
                                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" CssClass="ValidateLabel"
                                                        runat="server" Display="Dynamic" ControlToValidate="AlphaH" ErrorMessage="Không được trống"></asp:RequiredFieldValidator>
                                                    <asp:RegularExpressionValidator ID="RegularExpressionValidator2" CssClass="ValidateLabel"
                                                        runat="server" Display="Dynamic" ControlToValidate="AlphaH" ErrorMessage="Giá trị phải > 0 và < 1"
                                                        ValidationExpression="^[0]+(\.)?([0-9])?([0-9])?$"></asp:RegularExpressionValidator>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td class="Label">
                                                    Ghi chú
                                                </td>
                                                <td>
                                                    <textarea id="txt_ghichu_chitietconnguoi" runat="server" class="TextArea" rows="2"></textarea></td>
                                            </tr>
                                            <tr>
                                                <td colspan="2" style="text-align: center">
                                                    <asp:Button runat="server" ID="btnSaveConNguoi" Text="Ghi lại" />
                                                </td>
                                            </tr>
                                        </table>
                                        <div class="PanelRepeater">
                                            <asp:SqlDataSource ID="nhantoconnguoiData" runat="server" ConnectionString="<%$ConnectionStrings:evaConn %>"
                                                SelectCommand="SELECT * FROM DSNTConNguoiView WHERE MaDoanhNghiep=@madoanhnghiep and MaHoiDong=@mahoidong and MaSanPham=@masanpham ">
                                                <SelectParameters>
                                                    <asp:Parameter Name="madoanhnghiep" />
                                                    <asp:ControlParameter Name="mahoidong" ControlID="cb_hoidong" PropertyName="SelectedValue" />
                                                    <asp:ControlParameter Name="masanpham" ControlID="cb_sanpham" PropertyName="SelectedValue" />
                                                </SelectParameters>
                                            </asp:SqlDataSource>
                                            <table>
                                                <tr>
                                                    <td>
                                                        <div class="FeildContainer">
                                                            <label>
                                                                Yếu tố con người</label></div>
                                                    </td>
                                                    <td>
                                                        <div class="FeildContainer">
                                                            <label>
                                                                Alpha H</label></div>
                                                    </td>
                                                </tr>
                                                <asp:Repeater ID="rp_nhantoconnguoi" runat="server" DataSourceID="nhantoconnguoiData">
                                                    <ItemTemplate>
                                                        <tr>
                                                            <td>
                                                                <div class="FeildContainer">
                                                                    <label>
                                                                        <%#Eval("tennhantoconnguoi")%>
                                                                    </label>
                                                                </div>
                                                            </td>
                                                            <td>
                                                                <div class="FeildContainer">
                                                                    <asp:TextBox ID="TextBox1" runat="server" CssClass="TexBox" Text='<%#Eval("alphaH") %>'></asp:TextBox>
                                                                </div>
                                                            </td>
                                                        </tr>
                                                    </ItemTemplate>
                                                </asp:Repeater>
                                            </table>
                                        </div>
                                    </asp:Panel>
                                </div>
                                <%
                                styleDisplay = "none";
                                if (getSelectedTab().Equals("5"))
                                {
                                    styleDisplay = "block";
                                }
                                %>
                                <div id="UITabContent5" class="UITabContent" style="display: <%=styleDisplay %>;">
                                    <asp:Panel ID="Panel14" runat="server">
                                        <label class="Information">
                                            Mời bạn điền đầy đủ thông tin và ấn vào nút Tạo mới để hoàn tất việc tạo mới Bước
                                            Gia Công hoặc ấn vào nút Bỏ qua để xóa các thông tin đã điền và nhập lại.
                                        </label>
                                        <div class="FeildContainer">
                                            <label>
                                                Tên thiết bị</label>
                                            <asp:DropDownList CssClass="Select" runat="server" ID="cb_thietbi" DataSourceID="thietbiData"
                                                DataTextField="tenthietbi" DataValueField="mathietbi">
                                            </asp:DropDownList>
                                            <asp:SqlDataSource runat="server" ID="thietbiData" ConnectionString="<%$ ConnectionStrings:evaConn %>"
                                                SelectCommand="select mathietbi, tenthietbi from thietbi where madoanhnghiep =@madoanhnghiep">
                                                <SelectParameters>
                                                    <asp:Parameter Name="madoanhnghiep" />
                                                </SelectParameters>
                                            </asp:SqlDataSource>
                                        </div>
                                        <div class="FeildContainer">
                                            <label>
                                                Tên bước gia công</label>
                                            <asp:TextBox ID="txt_buocgiacong" runat="server" CssClass="TexBox"></asp:TextBox>
                                        </div>
                                        <div class="FeildContainer">
                                            <label>
                                                Ghi chú</label>
                                            <textarea id="txt_ghichu_buocgiacong" runat="server" rows="2" class="TextArea"></textarea>
                                        </div>
                                        <div>
                                            <asp:Button runat="server" ID="btn_saveBuocgiacong" Text="Ghi lại" OnClick="btn_saveBuocgiacong_Click" />
                                        </div>
                                        <div class="PanelRepeater">
                                            <asp:SqlDataSource ID="buocgiacongData" runat="server" ConnectionString="<%$ConnectionStrings:evaConn %>"
                                                SelectCommand="SELECT *,TensanPham,TenHoiDong FROM BuocGiaCong inner join SanPham on SanPham.MaSanPham = BuocGiaCong.MaSanPham inner join HoiDong on HoiDong.MaHoiDong = BuocGiaCong.MaHoiDong where HoiDong.MaDoanhNghiep =@madoanhnghiep and HoiDong.MaHoiDong=@mahoidong and BuocGiaCong.MaSanPham=@masanpham ">
                                                <SelectParameters>
                                                    <asp:Parameter Name="madoanhnghiep" />
                                                    <asp:ControlParameter Name="mahoidong" ControlID="cb_hoidong" PropertyName="SelectedValue" />
                                                    <asp:ControlParameter Name="masanpham" ControlID="cb_sanpham" PropertyName="SelectedValue" />
                                                </SelectParameters>
                                            </asp:SqlDataSource>
                                            <table>
                                                <tr>
                                                    <td>
                                                        <div class="FeildContainer">
                                                            <label>
                                                                Tên bước gia công</label></div>
                                                    </td>
                                                    <td>
                                                        <div class="FeildContainer">
                                                            <label>
                                                                AlphaT</label></div>
                                                    </td>
                                                </tr>
                                                <asp:Repeater ID="rp_buocgiacong" runat="server" DataSourceID="buocgiacongData">
                                                    <ItemTemplate>
                                                        <tr>
                                                            <td>
                                                                <div class="FeildContainer">
                                                                    <label>
                                                                        <%#Eval("tenbuocgiacong") %>
                                                                    </label>
                                                                </div>
                                                            </td>
                                                            <td>
                                                                <div class="FeildContainer">
                                                                    <asp:TextBox ID="TextBox3" runat="server" CssClass="TexBox" Text='<%#Eval("alphaT") %>'></asp:TextBox>
                                                                </div>
                                                            </td>
                                                        </tr>
                                                    </ItemTemplate>
                                                </asp:Repeater>
                                            </table>
                                        </div>
                                    </asp:Panel>
                                </div>
                                <%
                                styleDisplay = "none";
                                if (getSelectedTab().Equals("6"))
                                {
                                    styleDisplay = "block";
                                }
                                %>
                                <div id="UITabContent6" class="UITabContent" style="display: <%=styleDisplay %>;">
                                    <asp:Panel ID="Panel15" runat="server">
                                        <label>
                                            Nhập hiệu quả công nghệ kỹ thuật
                                        </label>
                                        <div class="FeildContainer">
                                            <label>
                                                Tên hiệu quả công nghệ kỹ thuật</label>
                                            <textarea id="txt_hieuquakythuat" runat="server" rows="2" class="TextArea"></textarea>
                                        </div>
                                        <div class="FeildContainer">
                                            <label>
                                                Ghi chú</label>
                                            <textarea id="txt_ghichu_hieuquakythuat" runat="server" rows="2" class="TextArea"></textarea>
                                        </div>
                                        <div>
                                            <asp:Button runat="server" ID="Button6" Text="Ghi lại" />
                                        </div>
                                        <div class="PanelRepeater">
                                            <asp:SqlDataSource ID="hieuquacongnghekythuatData" runat="server" ConnectionString="<%$ConnectionStrings:evaConn %>"
                                                SelectCommand="SELECT * FROM DSHieuQuaCNKTView WHERE MaDoanhNghiep=@madoanhnghiep and MaHoiDong=@mahoidong and MaSanPham=@masanpham ">
                                                <SelectParameters>
                                                    <asp:Parameter Name="madoanhnghiep" />
                                                    <asp:ControlParameter Name="mahoidong" ControlID="cb_hoidong" PropertyName="SelectedValue" />
                                                    <asp:ControlParameter Name="masanpham" ControlID="cb_sanpham" PropertyName="SelectedValue" />
                                                </SelectParameters>
                                            </asp:SqlDataSource>
                                            <table>
                                                <tr>
                                                    <td>
                                                        <div class="FeildContainer">
                                                            <label>
                                                                Tên hiệu quả công nghệ kỹ thuật</label></div>
                                                    </td>
                                                    <td>
                                                        <div class="FeildContainer">
                                                            <label>
                                                                Ghi chú</label></div>
                                                    </td>
                                                </tr>
                                                <asp:Repeater ID="rp_hieuquacongnghekythuat" runat="server" DataSourceID="hieuquacongnghekythuatData">
                                                    <ItemTemplate>
                                                        <tr>
                                                            <td>
                                                                <div class="FeildContainer">
                                                                    <label>
                                                                        <%#Eval("tenhieuquacongnghe_kythuat")%>
                                                                    </label>
                                                                </div>
                                                            </td>
                                                            <td>
                                                                <div class="FeildContainer">
                                                                    <label>
                                                                        <%#Eval("ghichu") %>
                                                                    </label>
                                                                </div>
                                                            </td>
                                                        </tr>
                                                    </ItemTemplate>
                                                </asp:Repeater>
                                            </table>
                                        </div>
                                    </asp:Panel>
                                </div>
                                <%
                                styleDisplay = "none";
                                if (getSelectedTab().Equals("7"))
                                {
                                    styleDisplay = "block";
                                }
                                %>
                                <div id="UITabContent7" class="UITabContent" style="display: <%=styleDisplay %>;">
                                    <asp:Panel ID="Panel16" runat="server">
                                        <label class="Information">
                                            Nhập nhân tố môi trường
                                        </label>
                                        <div class="FeildContainer">
                                            <label>
                                                Tên nhân tố môi trường
                                            </label>
                                            <textarea runat="server" id="txt_nhantomoitruong" rows="2" class="TextArea"></textarea>
                                        </div>
                                        <div class="FeildContainer">
                                            <label>
                                                Landa</label>
                                            <asp:TextBox ID="Lamda" runat="server" CssClass="TexBox"></asp:TextBox>
                                        </div>
                                        <div class="FeildContainer">
                                            <label>
                                                Ghi chú</label>
                                            <textarea runat="server" id="txt_ghichu_nhantomoitruong" rows="2" class="TextArea"></textarea>
                                        </div>
                                        <div>
                                            <asp:Button runat="server" ID="Button7" Text="Ghi lại" OnClick="btn_saveBuocgiacong_Click" />
                                        </div>
                                        <div class="PanelRepeater">
                                            <asp:SqlDataSource ID="nhantomoitruongData" runat="server" ConnectionString="<%$ConnectionStrings:evaConn %>"
                                                SelectCommand="SELECT * FROM DSNTMoiTruongView WHERE (MaDoanhNghiep=@madoanhnghiep) and (MaHoiDong=@mahoidong) and (MaSanPham=@masanpham) ">
                                                <SelectParameters>
                                                    <asp:Parameter Name="madoanhnghiep" />
                                                    <asp:ControlParameter Name="mahoidong" ControlID="cb_hoidong" PropertyName="SelectedValue" />
                                                    <asp:ControlParameter Name="masanpham" ControlID="cb_sanpham" PropertyName="SelectedValue" />
                                                </SelectParameters>
                                            </asp:SqlDataSource>
                                            <table>
                                                <tr>
                                                    <td>
                                                        <div class="FeildContainer">
                                                            <label>
                                                                Tên nhân tố môi trường</label></div>
                                                    </td>
                                                    <td>
                                                        <div class="FeildContainer">
                                                            <label>
                                                                Lamda</label></div>
                                                    </td>
                                                </tr>
                                                <asp:Repeater ID="rp_nhantomoitruong" runat="server" DataSourceID="nhantomoitruongData">
                                                    <ItemTemplate>
                                                        <tr>
                                                            <td>
                                                                <div class="FeildContainer">
                                                                    <label>
                                                                        <%#Eval("tennhantomoitruong") %>
                                                                    </label>
                                                                </div>
                                                            </td>
                                                            <td>
                                                                <div class="FeildContainer">
                                                                    <asp:TextBox ID="TextBox2" runat="server" CssClass="TexBox" Text='<%#Eval("Lamda") %>'></asp:TextBox>
                                                                </div>
                                                            </td>
                                                        </tr>
                                                    </ItemTemplate>
                                                </asp:Repeater>
                                            </table>
                                        </div>
                                    </asp:Panel>
                                </div>
                                <%
                                styleDisplay = "none";
                                if (getSelectedTab().Equals("8"))
                                {
                                    styleDisplay = "block";
                                }
                                %>
                                <div id="UITabContent8" class="UITabContent" style="display: <%=styleDisplay %>;">
                                    <asp:Panel ID="Panel17" runat="server">
                                        <label>
                                            Thông tin tổng kết</label>
                                        <div class="FeildContainer">
                                            <asp:Label ID="hoidong" runat="server" CssClass="Label">Hội đồng :</asp:Label>
                                            <asp:Label ID="hoidongValue" runat="server" CssClass="Value"><% =cb_hoidong.SelectedValue %></asp:Label>
                                        </div>
                                        <div class="FeildContainer">
                                            <asp:Label ID="Label1" runat="server" CssClass="Label">Sản phẩm :</asp:Label>
                                            <asp:Label ID="Label2" runat="server" CssClass="Value"><% =cb_sanpham.SelectedValue %></asp:Label>
                                        </div>
                                        <div class="FeildContainer">
                                            <asp:Label ID="Label9" runat="server" CssClass="Label">Chi tiết thông tin :</asp:Label>
                                            <asp:Label ID="Label10" runat="server" CssClass="Value"><% =txt_chitietthongtin.Value %></asp:Label>
                                        </div>
                                        <div class="FeildContainer">
                                            <asp:Label ID="Label11" runat="server" CssClass="Label">Alpha I:</asp:Label>
                                            <asp:Label ID="Label12" runat="server" CssClass="Value"><% = AlphaI.Text %></asp:Label>
                                        </div>
                                        <div class="FeildContainer">
                                            <asp:Label ID="Label13" runat="server" CssClass="Label">Hiệu quả CNTT:</asp:Label>
                                            <asp:Label ID="Label14" runat="server" CssClass="Value"><% =txt_hieuquathongtin.Value%></asp:Label>
                                        </div>
                                        <div class="FeildContainer">
                                            <asp:Label ID="Label15" runat="server" CssClass="Label">Chi tiết tổ chức:</asp:Label>
                                            <asp:Label ID="Label16" runat="server" CssClass="Value"><% =txt_chitiettochuc.Value%></asp:Label>
                                        </div>
                                        <div class="FeildContainer">
                                            <asp:Label ID="Label17" runat="server" CssClass="Label">Alpha O:</asp:Label>
                                            <asp:Label ID="Label18" runat="server" CssClass="Value"><% =AlphaO.Text%></asp:Label>
                                        </div>
                                        <div class="FeildContainer">
                                            <asp:Label ID="Label19" runat="server" CssClass="Label">Hiệu quả tổ chức:</asp:Label>
                                            <asp:Label ID="Label20" runat="server" CssClass="Value"><% =txt_hieuquatochuc.Value%></asp:Label>
                                        </div>
                                        <div class="FeildContainer">
                                            <asp:Label ID="Label21" runat="server" CssClass="Label">Yếu tố con người:</asp:Label>
                                            <asp:Label ID="Label22" runat="server" CssClass="Value"><% =txt_chitietconnguoi.Value%></asp:Label>
                                        </div>
                                        <div class="FeildContainer">
                                            <asp:Label ID="Label23" runat="server" CssClass="Label">Alpha H:</asp:Label>
                                            <asp:Label ID="Label24" runat="server" CssClass="Value"><% =AlphaH.Text%></asp:Label>
                                        </div>
                                        <div class="FeildContainer">
                                            <asp:Label ID="Label3" runat="server" CssClass="Label">Thiết bị :</asp:Label>
                                            <asp:Label ID="Label4" runat="server" CssClass="Value"><% =cb_thietbi.SelectedValue%></asp:Label>
                                        </div>
                                        <div class="FeildContainer">
                                            <asp:Label ID="Label5" runat="server" CssClass="Label">Bước gia công:</asp:Label>
                                            <asp:Label ID="Label6" runat="server" CssClass="Value"><% =txt_buocgiacong.Text %></asp:Label>
                                        </div>
                                        <div class="FeildContainer">
                                            <asp:Label ID="Label7" runat="server" CssClass="Label">nhân tố môi trường  :</asp:Label>
                                            <asp:Label ID="Label8" runat="server" CssClass="Value"><% =txt_nhantomoitruong.Value%></asp:Label>
                                        </div>
                                        <div class="FeildContainer">
                                            <asp:Label ID="Label27" runat="server" CssClass="Label">Lamda  :</asp:Label>
                                            <asp:Label ID="Label28" runat="server" CssClass="Value"><% =Lamda.Text%></asp:Label>
                                        </div>
                                        <div class="FeildContainer">
                                            <asp:Label ID="Label25" runat="server" CssClass="Label">Hiệu qả kỹ thuật :</asp:Label>
                                            <asp:Label ID="Label26" runat="server" CssClass="Value"><% =txt_hieuquakythuat.Value%></asp:Label>
                                        </div>
                                    </asp:Panel>
                                </div>
                                <%
                                styleDisplay = "none";
                                if (getSelectedTab().Equals("9"))
                                {
                                    styleDisplay = "block";
                                }
                                %>
                                <div id="UITabContent9" class="UITabContent" style="display: <%=styleDisplay %>;">
                                    <asp:Panel ID="Panel1" runat="server">
                                        <label class="Information">
                                            Nhập hiệu quả công nghệ thông tin
                                        </label>
                                        <div class="FeildContainer">
                                            <label>
                                                Tên hiệu quả công nghệ thông tin</label>
                                            <textarea runat="server" id="txt_hieuquathongtin" rows="2" class="TextArea"></textarea>
                                        </div>
                                        <div class="FeildContainer">
                                            <label>
                                                Ghi chú
                                            </label>
                                            <textarea runat="server" id="txt_ghichu_hieuquathongtin" rows="2" class="TextArea"></textarea>
                                        </div>
                                        <div>
                                            <asp:Button runat="server" ID="Button2" Text="Ghi lại" />
                                        </div>
                                        <div class="PanelRepeater">
                                            <asp:SqlDataSource ID="hieuquacongnghethongtinData" runat="server" ConnectionString="<%$ConnectionStrings:evaConn %>"
                                                SelectCommand="SELECT * FROM HieuQuaCongNghe_ThongTin inner join SanPham on SanPham.MaSanPham = HieuQuaCongNghe_ThongTin.MaSanPham inner join HoiDong on HoiDong.MaHoiDong = HieuQuaCongNghe_ThongTin.MaHoiDong where HoiDong.MaDoanhNghiep=@madoanhnghiep and HoiDong.MaHoiDong=@mahoidong and SanPham.MaSanPham=@masanpham ">
                                                <SelectParameters>
                                                    <asp:Parameter Name="madoanhnghiep" />
                                                    <asp:ControlParameter Name="mahoidong" ControlID="cb_hoidong" PropertyName="SelectedValue" />
                                                    <asp:ControlParameter Name="masanpham" ControlID="cb_sanpham" PropertyName="SelectedValue" />
                                                </SelectParameters>
                                            </asp:SqlDataSource>
                                            <table>
                                                <tr>
                                                    <td>
                                                        <div class="FeildContainer">
                                                            <label>
                                                                Hiệu quả chi tiết thông tin</label></div>
                                                    </td>
                                                    <td>
                                                        <div class="FeildContainer">
                                                            <label>
                                                                Ghi chú</label></div>
                                                    </td>
                                                </tr>
                                                <asp:Repeater ID="rp_hieuquacongnghethongtin" runat="server" DataSourceID="hieuquacongnghethongtinData">
                                                    <ItemTemplate>
                                                        <tr>
                                                            <td>
                                                                <div class="FeildContainer">
                                                                    <label>
                                                                        <%#Eval("TenHieuQuaCongNghe_ThongTin")%>
                                                                    </label>
                                                                </div>
                                                            </td>
                                                            <td>
                                                                <div class="FeildContainer">
                                                                    <label>
                                                                        <%#Eval("ghichu") %>
                                                                    </label>
                                                                </div>
                                                            </td>
                                                        </tr>
                                                    </ItemTemplate>
                                                </asp:Repeater>
                                            </table>
                                        </div>
                                    </asp:Panel>
                                </div>
                            </div>
                        </div>
                    </asp:PlaceHolder>
                </div>
        </div>
    </div>
    </div>
    <table width="500px">
        <tr><td style="width:100%" class="Label">
            <asp:Label CssClass="ValidateLabel" ID="errorChiTietThongTin" Text="" Visible="false" runat="server"></asp:Label>
            <asp:Label CssClass="ValidateLabel" ID="errorChiTietToChuc" Text="" Visible="false" runat="server"></asp:Label>
            <asp:Label CssClass="ValidateLabel" ID="Label30" Text="" Visible="false" runat="server"></asp:Label>
            <asp:Label CssClass="ValidateLabel" ID="Label31" Text="Điểm Chi tiết Thông tin Alpha I phải lớn hơn 0 và bé hơn 1." Visible="false" runat="server"></asp:Label>
            <asp:Label CssClass="ValidateLabel" ID="Label32" Text="Điểm Chi tiết Thông tin Alpha I phải lớn hơn 0 và bé hơn 1." Visible="false" runat="server"></asp:Label>
        </td></tr>
        <tr>
            <td>
                <asp:Button runat="server" ID="btn_back" Text="Quay lại" OnClick="backStep" CausesValidation="false" />
                <asp:Button runat="server" ID="btn_next" Text="Tiếp" OnClick="nextStep" CausesValidation="false" />
                <asp:Button runat="server" ID="btn_reset" Text="Nạp lại" OnClick="resetValue" CausesValidation="false" />
                <asp:Button runat="server" ID="btn_finish" Text="Kết thúc" OnClick="saveWizard" />
                <asp:Button runat="server" ID="btn_cancel" Text="Bỏ qua" OnClick="cancelWizard"
                    CausesValidation="false" />
            </td>
        </tr>
    </table>    
</asp:Content>
